#include <iostream>
#include "Vec3.h"
using namespace std;


Vec3::Vec3 (int x, int y, int z) {
	_x = x;
	_y = y;
	_z = z;
}

Vec3::~Vec3 () {

}

int Vec3::getX () const {
  return _x;
}

int Vec3::getY () const {
  return _y;
}

int Vec3::getZ () const {
  return _z;
}

void Vec3::operator+ (const Vec3 &op) {
 this->_x = this->_x + op._x;
 this->_y = this->_y + op._y;
 this->_z = this->_z + op._z;
}

void Vec3::operator- (const Vec3 &op) {
 this->_x = this->_x - op._x;
 this->_y = this->_y - op._y;
 this->_z = this->_z - op._z;
}

void Vec3::toString(){
	cout << "Vector: [X=" << _x << "] - [Y=" << _y << "] - [Z=" << _z << "]" << endl;
}
